package day9;

import day4.BankAcc;

import java.io.*;
import java.lang.reflect.Array;
import java.util.ArrayList;

/**
 * @author oldliu
 * @since 1.0
 */
public class ReadObject {
    public static void main(String[] args) {
        try {
            //ArrayList arrayList=null;
            ObjectInputStream oin=new ObjectInputStream(new FileInputStream("D:\\Documents\\桌面\\44443.txt"));
            BankAcc b= (BankAcc) oin.readObject();
            oin.close();
            System.out.println(b);
//            b.setMoney(b.getMoney()+10000000);
//            ObjectOutputStream oout=new ObjectOutputStream(new FileOutputStream("D:\\Documents\\桌面\\44443.txt"));
//            oout.writeObject(b);
//            oout.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
